README

1. Raw Data Files

# for Afrobarometer and cross-national analysis

merged_r6_data_2016_36countries2.sav - Afrobarometer merged data for round 6

afrobarometer_release-dataset_merge-34ctry_r8_en_2023-03-01.sav - Afrobarometer merged data for round 8

WDI download June 8 2022.csv - World Development Indicators from the World Bank

pwt100.xlsx - Penn World Tables

10_31_19_0306pm_wep.csv - World Economics and Politics Dataverse

WITS_RCI.xlsx - Worldwide Integrated Trade Solutions

# for original survey analysis

ghana_raw.RData - original survey data from Ghana (includes only variables used for analysis in this paper)

ghana_labexp_intake_jun16.doc - original survey questionnaire from Ghana

uganda_raw.RData - original survey data from Uganda (2017) (includes only variables used for analysis in this paper)

uganda_labexp_debrief_and_outtake_jan17.xlsx - original survey questionnaire from Uganda (2017)

uganda18_raw.RData - original survey data from Uganda (2018) (includes only variables used for analysis in this paper)

uganda_fieldexp_jun18.doc - original survey questionnaire from Uganda (2018)

2. Replication Files

# Afrobarometer and cross-national analysis

AB-r6-clean.R takes merged_r6_data_2016_36countries2.sav, cleans it, and outputs abr6_clean.RData
- other inputs: WDI download June 8 2022.csv, pwt100.xlsx, 10_31_19_0306pm_wep.csv, WITS_RCI.xlsx

AB-r8-clean.R takes afrobarometer_release-dataset_merge-34ctry_r8_en_2023-03-01.sav, cleans it, and outputs abr8_clean.RData
- other inputs: WDI download June 8 2022.csv, pwt100.xlsx, 10_31_19_0306pm_wep.csv, WITS_RCI.xlsx

AB-trade.R takes abr6_clean.Rdata, abr8_clean.RData, [OTHERS], and outputs figures and tables to the folder /AB-output/
- other inputs: 10_31_19_0306pm_wep.csv, WDI download June 8 2022.csv

# original survey analysis

milner-ghana.R takes ghana_raw.RData, cleans and analyzes the data, and outputs figures and tables to the filter /milner-ghana-output/
- other inputs: abr6_clean.RData, abr8_clean.Rdata

milner-uganda.R takes uganda_raw.RData, cleans and analyzes the data, and outputs figures and tables to the filter /milner-uganda-output/
- other inputs: abr6_clean.RData, abr8_clean.Rdata

milner-uganda-2018.R takes uganda18_raw.RData, cleans and analyzes the data, and outputs figures and tables to the filter /milner-uganda-2018-output/
- other inputs: abr6_clean.RData, abr8_clean.Rdata

# synthesis

Figure 2.R takes regs.R files from each of the four output folders and plots relevant model output in Figure 2

3. Computer Environment

macOS Ventura 13.4.1
R Version 4.3.1 "Beagle Scouts"

